On this page (7 sections)
Ubuntu has published USN-9129-1, a security notice for ZBar, an open source QR code and bar code scanner and decoder. According to Ubuntu, ZBar mishandles certain QR codes, which leads to a heap-based buffer overflow. The notice references CVE-2023-40889 and covers Ubuntu 14.04 LTS only.
If you run an Ubuntu 14.04 server that decodes QR codes or bar codes, for example in an upload pipeline, an inventory tool or a ticketing workflow, this notice is relevant to you. Most websites do not use ZBar at all, so the first job is finding out whether yours does.
What Ubuntu says happened
Ubuntu's overview states that ZBar could be made to expose sensitive information or run programs if it scanned a specially crafted QR code. The details say that if a user or an automated system were tricked into scanning such a code, an attacker could possibly obtain sensitive information or execute arbitrary code.
The notice does not give a severity rating or a CVSS score, and it does not say whether the flaw is being exploited. Only one publisher, Ubuntu itself, covers this story in the research, so there is no independent confirmation or additional technical analysis to draw on.
The weakness in plain terms
A heap-based buffer overflow happens when a program writes more data into a block of memory than the block was sized to hold. The extra data spills into neighboring memory. Depending on what lives there, the result can be a crash, leaked data or, in the worst case, attacker-controlled code execution. Ubuntu's wording ("possibly") reflects that the outcome depends on the surrounding conditions.
What makes decoders like ZBar interesting is the input. A QR code is just an image, so anyone who can get an image in front of the scanner can supply the malicious input. If the scanner runs automatically, for instance on every uploaded image, no human has to be fooled. Ubuntu's notice explicitly mentions automated systems being tricked into scanning a crafted code.
Who is realistically exposed
- Systems running Ubuntu 14.04 LTS with the zbar package or libzbar0 installed. The notice lists no other Ubuntu releases.
- Applications that use libzbar0 to read QR codes or bar codes, even if you never installed the zbar command line tools directly.
- Automated workflows that decode images from untrusted sources, such as customer uploads or scanned documents.
- Machines used only for ordinary web serving with no QR decoding are unlikely to be affected in practice, but confirm the package is not present.
The fixed package carries an esm1 version string, and Ubuntu states the fix is available with Ubuntu Pro via the Legacy Support add-on. Check your own systems to see whether they have access to that channel.
How to check your exposure
Run this on the server to see whether the ZBar library or tools are installed and which version you have. No output means no package with zbar in its name is installed. If a version appears, compare it with 0.10+doc-9ubuntu0.14.04.1~esm1.
dpkg -l | grep -i zbarTo see which installed packages depend on the library, which helps you find the application that actually scans codes, run the following. It only reads package data.
apt-cache rdepends --installed libzbar0Also check any custom software, language extensions and containers on the host that might bundle or call ZBar. The commands above only see packages managed by apt.
What to do now
- Run the dpkg check above and note whether libzbar0 or zbar is installed on each Ubuntu 14.04 host.
- If it is installed but unused, consider removing it so the vulnerable code is no longer present.
- If you need it, follow Ubuntu's instructions for Ubuntu Pro with the Legacy Support add-on on that machine, since the notice says the fix is available that way. Ubuntu states Pro is free for up to five machines.
- Apply a standard system update, which Ubuntu says will make the necessary changes, and confirm libzbar0 reports 0.10+doc-9ubuntu0.14.04.1~esm1.
- Restart any long-running service or application that uses ZBar so it loads the updated library.
- Until patched, avoid automatically decoding QR codes or bar codes from untrusted sources on the affected host.
- Plan a migration off Ubuntu 14.04 so future fixes do not depend on a legacy add-on.
Ubuntu's notice says a standard system update will make all the necessary changes. If you prefer to update only this library, the standard apt command below does that. Run it on the affected host once your system has access to the Ubuntu Pro fix. It installs the fixed build if one is available to your system.
sudo apt-get update
sudo apt-get install --only-upgrade libzbar0Verify the result with the same dpkg query as before. The installed version should match the fixed version in the notice.
Detection and monitoring afterwards
The notice describes no indicators of compromise, so there is nothing specific to hunt for. General hygiene still applies: watch for crashes or unexpected restarts of the process that decodes images, review logs for unusual activity from that service account, and run that process with minimal privileges so a memory-safety bug has limited reach.
If a server like this is internet-facing, an outside view helps too. A security scan of a verified site and certificate and DNS monitoring can reveal exposed services and configuration drift, though they cannot see which libraries are installed inside the host. For wider context on patching discipline, see our small business website security guide.
Timeline
| Date | Event |
|---|---|
| 17 November 2026 | Ubuntu publishes USN-9129-1 for ZBar on Ubuntu 14.04 LTS, referencing CVE-2023-40889 |
Sources
This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.
