Skip to content

← Public intelligence

PyPI package

opencv-python

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

30 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.6PyPIAmendedPublished

    opencv-python bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863

    GHSA-qr4w-53vh-m672

    Affected
    • PyPI opencv-python < 4.8.1.78
    Fixed in
    4.8.1.78· Vendor fix available
    Issue
    opencv-python versions before v4.8.1.78 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863. opencv-python v4.8.1.78 upgrades the bundled libwebp binary to v1.3.2.

    Recommended action: Upgrade to 4.8.1.78 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. UnratedPyPIPublished

    PYSEC-2023-183

    Affected
    • PyPI opencv-python < 4.8.1.78
    Fixed in
    4.8.1.78· Vendor fix available
    Issue
    opencv-python versions before v4.8.1.78 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863. opencv-python v4.8.1.78 upgrades the bundled libwebp binary to v1.3.2.

    Recommended action: Upgrade to 4.8.1.78 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  3. Medium, CVSS 5.5PyPIAmendedPublished

    Out-of-bounds Write in OpenCV.

    CVE-2018-5268 · GHSA-9g8h-pjm4-q92p

    Affected
    • PyPI opencv-python <= 3.3.1.11
    Fixed in
    3.4.1.15· Vendor fix available
    Issue
    In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer overflow happens in cv::Jpeg2KDecoder::readComponent8u in modules/imgcodecs/src/grfmtjpeg2000.cpp when parsing a crafted image file.

    Recommended action: Upgrade to 3.4.1.15 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. High, CVSS 8.8PyPIAmendedPublished

    Out-of-bounds Write in OpenCV

    CVE-2019-5064 · GHSA-q799-q27x-vp7w

    Affected
    • PyPI opencv-python <= 4.1.2.30
    Fixed in
    4.2.0.32· Vendor fix available
    Issue
    An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV, version 4.1.0 (corresponds with OpenCV-Python version 4.1.2.30). A specially crafted JSON file can cause a buffer overflow, resulting in multiple heap corruptions and potentially code execution. An attacker can provide a specially crafted file to trigger this vulnerability.

    Recommended action: Upgrade to 4.2.0.32 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. Medium, CVSS 6.5PyPIAmendedPublished

    Out-of-bounds Read in OpenCV

    CVE-2019-19624 · GHSA-jggw-2q6g-c3m6

    Affected
    • PyPI opencv-python <= 4.1.0.24
    Fixed in
    4.1.0.25· Vendor fix available
    Issue
    An out-of-bounds read was discovered in OpenCV before 4.1.1 (OpenCV-Python before 4.1.0.25). Specifically, variable coarsestscale is assumed to be greater than or equal to finestscale within the calc()/oclcalc() functions in disflow.cpp. However, this is not true when dealing with small images, leading to an out-of-bounds read of the heap-allocated arrays Ux and Uy.

    Recommended action: Upgrade to 4.1.0.25 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. Medium, CVSS 5.3PyPIAmendedPublished

    Out-of-bounds Read in OpenCV

    CVE-2019-16249 · GHSA-x3rm-644h-67m8

    Affected
    • PyPI opencv-python <= 4.1.1.26
    Fixed in
    4.1.2.30· Vendor fix available
    Issue
    OpenCV 4.1.1 has an out-of-bounds read in halbaseline::vload in core/hal/intrinsse.hpp when called from computeSSDMeanNorm in modules/video/src/disflow.cpp.

    Recommended action: Upgrade to 4.1.2.30 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  7. Medium, CVSS 5.9PyPIAmendedPublished

    Divide By Zero in OpenCV.

    CVE-2019-15939 · GHSA-hxfw-jm98-v4mq

    Affected
    • PyPI opencv-python <= 4.1.0.25
    Fixed in
    4.1.1.26· Vendor fix available
    Issue
    An issue was discovered in OpenCV 4.1.0 (OpenCV-Python 4.1.0.25). There is a divide-by-zero error in cv::HOGDescriptor::getDescriptorSize in modules/objdetect/src/hog.cpp.

    Recommended action: Upgrade to 4.1.1.26 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  8. High, CVSS 7.5PyPIAmendedPublished

    NULL Pointer Dereference in OpenCV.

    CVE-2019-14493 · GHSA-3448-vrgh-85xr

    Affected
    • PyPI opencv-python <= 4.1.0.25
    Fixed in
    4.1.1.26· Vendor fix available
    Issue
    An issue was discovered in OpenCV before 4.1.1 (OpenCV-Python before 4.1.1.26). There is a NULL pointer dereference in the function cv::XMLParser::parse at modules/core/src/persistence.cpp.

    Recommended action: Upgrade to 4.1.1.26 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  9. High, CVSS 7.5PyPIAmendedPublished

    Out-of-bounds Read and Out-of-bounds Write in OpenCV

    CVE-2019-14492 · GHSA-fw99-f933-rgh8

    Affected
    • PyPI opencv-python <= 3.4.6.27; >= 4.0.0.21, <= 4.1.0.25
    Fixed in
    4.1.1.263.4.7.28· Vendor fix available
    Issue
    An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1 (OpenCV-Python before 3.4.7.28 and 4.x before 4.1.1.26). There is an out of bounds read/write in the function HaarEvaluator::OptFeature::calc in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service.

    Recommended action: Upgrade to 4.1.1.26 or 3.4.7.28 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  10. High, CVSS 8.2PyPIAmendedPublished

    Out-of-bounds Read in OpenCV

    CVE-2019-14491 · GHSA-fm39-cw8h-3p63

    Affected
    • PyPI opencv-python <= 3.4.6.27; >= 4.0.0.21, <= 4.1.0.25
    Fixed in
    4.1.1.263.4.7.28· Vendor fix available
    Issue
    An issue was discovered in OpenCV before 3.4.7 and 4.x before 4.1.1 (OpenCV-Python before 3.4.7.28 and 4.x before 4.1.1.26). There is an out of bounds read in the function cv::predictOrdered<cv::HaarEvaluator in modules/objdetect/src/cascadedetect.hpp, which leads to denial of service.

    Recommended action: Upgrade to 4.1.1.26 or 3.4.7.28 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  11. Medium, CVSS 5.5PyPIAmendedPublished

    Reachable Assertion in OpenCV.

    CVE-2018-5269 · GHSA-89rj-5ggj-3p9p

    Affected
    • PyPI opencv-python <= 3.3.1.11
    Fixed in
    3.4.1.15· Vendor fix available
    Issue
    In OpenCV 3.3.1 (corresponds with OpenCV-Python 3.3.1.11), an assertion failure happens in cv::RBaseStream::setPos in modules/imgcodecs/src/bitstrm.cpp because of an incorrect integer cast.

    Recommended action: Upgrade to 3.4.1.15 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  12. High, CVSS 8.8PyPIAmendedPublished

    Integer Overflow or Wraparound in OpenCV.

    CVE-2017-1000450 · GHSA-m43c-649m-pm48

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    In opencv/modules/imgcodecs/src/utils.cpp, functions FillUniColor and FillUniGray do not check the input length, which can lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 (corresponding with OpenCV-Python 3.3.0.9) and earlier.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  13. High, CVSS 7.5PyPIAmendedPublished

    Out-of-bounds Read in OpenCV

    CVE-2017-18009 · GHSA-83rh-hx5x-q9p5

    Affected
    • PyPI opencv-python <= 3.3.1.11
    Fixed in
    3.4.1.15· Vendor fix available
    Issue
    In OpenCV 3.3.1 (corresponding with OpenCV-Python 3.3.1.11), a heap-based buffer over-read exists in the function cv::HdrDecoder::checkSignature in modules/imgcodecs/src/grfmthdr.cpp.

    Recommended action: Upgrade to 3.4.1.15 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  14. Medium, CVSS 6.5PyPIAmendedPublished

    Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV

    CVE-2017-17760 · GHSA-jcxv-2j3h-mg59

    Affected
    • PyPI opencv-python <= 3.3.1.11
    Fixed in
    3.4.0.12· Vendor fix available
    Issue
    OpenCV 3.3.1 (corresponding with opencv-python and opencv-contrib-python 3.3.1.11) has a Buffer Overflow in the cv::PxMDecoder::readData function in grfmtpxm.cpp, because an incorrect size value is used.

    Recommended action: Upgrade to 3.4.0.12 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  15. Medium, CVSS 6.5PyPIAmendedPublished

    Out-of-bounds Write in OpenCV

    CVE-2017-14136 · GHSA-634c-v2xv-ffpg

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    OpenCV (Open Source Computer Vision Library) 3.3 (corresponding to OpenCV-Python 3.3.0.9) has an out-of-bounds write error in the function FillColorRow1 in utils.cpp when reading an image file by using cv::imread. NOTE: this vulnerability exists because of an incomplete fix for CVE-2017-12597.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  16. High, CVSS 8.8PyPIAmendedPublished

    Integer Overflow or Wraparound in OpenCV

    CVE-2017-12864 · GHSA-267x-w5hx-8hjr

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    In opencv/modules/imgcodecs/src/grfmtpxm.cpp, function ReadNumber did not checkout the input length, which lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects OpenCV 3.3 (corresponding with OpenCV-Python version 3.3.0.9) and earlier.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  17. High, CVSS 8.8PyPIAmendedPublished

    Integer Overflow or Wraparound in OpenCV

    CVE-2017-12863 · GHSA-wq8f-wvqp-xvvm

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    In opencv/modules/imgcodecs/src/grfmtpxm.cpp, function PxMDecoder::readData has an integer overflow when calculate srcpitch. If the image is from remote, may lead to remote code execution or denial of service. This affects OpenCV 3.3 (corresponding to OpenCV-Python 3.3.0.9) and earlier.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  18. High, CVSS 8.8PyPIAmendedPublished

    Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV

    CVE-2017-12862 · GHSA-5rpc-gwh9-q9fg

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    In modules/imgcodecs/src/grfmtpxm.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 (corresponding to OpenCV-Python 3.3.0.9) and earlier.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  19. High, CVSS 8.8PyPIAmendedPublished

    Out-of-bounds Write in OpenCV

    CVE-2017-12606 · GHSA-vc29-rj92-gc7j

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) has an out-of-bounds write error in the function FillColorRow4 in utils.cpp when reading an image file by using cv::imread.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  20. High, CVSS 8.8PyPIAmendedPublished

    Out-of-bounds Write in OpenCV

    CVE-2017-12605 · GHSA-rqxg-xvcq-3v2f

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) has an out-of-bounds write error in the FillColorRow8 function in utils.cpp when reading an image file by using cv::imread.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  21. High, CVSS 8.8PyPIAmendedPublished

    Out-of-bounds Write in OpenCV

    CVE-2017-12604 · GHSA-c7gp-2pch-qh2v

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) has an out-of-bounds write error in the FillUniColor function in utils.cpp when reading an image file by using cv::imread.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  22. High, CVSS 8.8PyPIAmendedPublished

    Out-of-bounds Write in OpenCV

    CVE-2017-12603 · GHSA-6v6p-p97v-g2p7

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python and OpenCV-Contrib-Python 3.3.0.9) has an invalid write in the cv::RLByteStream::getBytes function in modules/imgcodecs/src/bitstrm.cpp when reading an image file by using cv::imread, as demonstrated by the 2-opencv-heapoverflow-fseek test case.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  23. High, CVSS 7.5PyPIAmendedPublished

    Denial of Service in OpenCV

    CVE-2017-12602 · GHSA-pqjj-6f5q-gqph

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python 3.3.0.9) has a denial of service (memory consumption) issue, as demonstrated by the 10-opencv-dos-memory-exhaust test case.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  24. High, CVSS 8.8PyPIAmendedPublished

    Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV

    CVE-2017-12601 · GHSA-w96g-3p64-63wr

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python 3.3.0.9) has a buffer overflow in the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmtbmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  25. High, CVSS 7.5PyPIAmendedPublished

    Denial of Service in OpenCV

    CVE-2017-12600 · GHSA-fr58-2xhv-qp3w

    Affected
    • PyPI opencv-python <= 3.3.0.9
    Fixed in
    3.3.1.11· Vendor fix available
    Issue
    OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python 3.3.0.9) has a denial of service (CPU consumption) issue, as demonstrated by the 11-opencv-dos-cpu-exhaust test case.

    Recommended action: Upgrade to 3.3.1.11 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →