Description
An issue was discovered in OpenCV before 4.1.1. There is a NULL pointer dereference in the function cv::XMLParser::parse at modules/core/src/persistence.cpp.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | opencv | 4.1.2+dfsg-3 | — |
| Debian 13 | opencv | 4.1.2+dfsg-3 | — |
| Debian 12 | opencv | 4.1.2+dfsg-3 | — |
| Debian 9 | opencv | 2.4.9.1+dfsg1-2+deb9u1 | DLA-2799-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | opencv | 4.5.4+dfsg-9ubuntu4+esm1 | USN-7247-1 |
| Ubuntu Pro 18.04 LTS | opencv | 3.2.0+dfsg-4ubuntu0.1+esm4 | USN-7247-1, USN-4818-1 |
| Ubuntu Pro 16.04 LTS | opencv | 2.4.9.1+dfsg-1.5ubuntu1.1+esm1 | USN-4818-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | opencv | 2.4.8+dfsg1-2ubuntu1.2+esm1 | USN-4818-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | opencv-contrib-python | < 4.1.1.26 | 4.1.1.26 | GHSA-3448-vrgh-85xr |
| PyPI | opencv-contrib-python-headless | < 4.1.1.26 | 4.1.1.26 | GHSA-3448-vrgh-85xr |
| PyPI | opencv-python | < 4.1.1.26 | 4.1.1.26 | GHSA-3448-vrgh-85xr |
| PyPI | opencv-python-headless | < 4.1.1.26 | 4.1.1.26 | GHSA-3448-vrgh-85xr |
Advisories 3
- USN-4818-1 opencv vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-7247-1 opencv vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-2799-1 opencv - security update Debian Security (DSA / DLA) · Mar 9, 2026