Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-7741

In libsndfile before 1.0.28, an error in the "flac_buffer_copy()" function (flac.c) can be exploited to cause a segmentation violation (with write memory access) via a specially crafted FLAC file during a resample attempt, a similar issue to CVE-2017-7585.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-7741
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:17 UTC · Revision 1

Source evidence

CVE-2017-7741

core-osv · Original source

Published 12 Apr 2017, 18:59 UTC

In libsndfile before 1.0.28, an error in the "flac_buffer_copy()" function (flac.c) can be exploited to cause a segmentation violation (with write memory access) via a specially crafted FLAC file during a resample attempt, a similar issue to CVE-2017-7585.

osv:CVE-2017-7741
Complete source record
{
  "id": "e884bd82d4c52d39800d9369b4f13c94239ad222a37b41674df1b51e1ec83cd2",
  "url": "https://osv.dev/vulnerability/CVE-2017-7741",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-7741",
    "summary": "In libsndfile before 1.0.28, an error in the \"flac_buffer_copy()\" function (flac.c) can be exploited to cause a segmentation violation (with write memory access) via a specially crafted FLAC file during a resample attempt, a similar issue to CVE-2017-7585.",
    "evidence": "osv:CVE-2017-7741",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2017-7741",
      "aliases": [
        "CVE-2017-7741"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libsndfile/libsndfile",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "d3d545abf9ed5542b69ded164b36a28338340a6b"
                },
                {
                  "fixed": "60b234301adf258786d8b90be5c1d437fc8799e0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libsndfile_project:libsndfile:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.0.27"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "60b234301adf258786d8b90be5c1d437fc8799e0"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.0.27",
            "1.0.26",
            "1.0.25"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-7741.json",
            "vanir_signatures": [
              {
                "id": "CVE-2017-7741-1b2d10b9",
                "digest": {
                  "length": 496,
                  "function_hash": "169080564912528090674624408017457554629"
                },
                "source": "https://github.com/libsndfile/libsndfile/commit/60b234301adf258786d8b90be5c1d437fc8799e0",
                "target": {
                  "file": "src/flac.c",
                  "function": "flac_read_loop"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-7741-cd721512",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "109114571929507273310220021172740815815",
                    "76368128462217476998474735940412218708",
                    "303874596321044913956374893106939443276",
                    "264720290231741206551401345704081189001",
                    "135197557860603977353365421121237074332",
                    "263717283414918463731512000258528158035",
                    "99473988875365107291149998678668723177",
                    "199401478924829965301066403515308793905",
                    "59203162092611165790685795512464043510",
                    "19630209495980016236699389021759122784",
                    "127472803089175278493327389638594133972",
                    "195930973569973496231622457582848119489",
                    "91490283884465664276103671799831603059",
                    "13944221043548351812104027530949724896",
                    "109574527705998071928987124103849904768",
                    "227635834078458020049011341189234464981",
                    "199122207842648883783322305368703206147",
                    "836793104164813475992833902021667257",
                    "33688393261765994374588592882870440196",
                    "234433096601653574015743753327543798381",
                    "91088291842320796586954771010102965668",
                    "42764800811181595291975281012947374671",
                    "308076142000906389299207724540468217286",
                    "128999497043501194925248892451091219059",
                    "160753735249779509303007042741803534334",
                    "219704455362068007023001041133111634127",
                    "214083110146677973311463626405359553833",
                    "39200702163750044999781941082996055539"
                  ]
                },
                "source": "https://github.com/libsndfile/libsndfile/commit/60b234301adf258786d8b90be5c1d437fc8799e0",
                "target": {
                  "file": "src/flac.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-7741-fa025f04",
                "digest": {
                  "length": 3722,
                  "function_hash": "58142569931487262227866425697707993698"
                },
                "source": "https://github.com/libsndfile/libsndfile/commit/60b234301adf258786d8b90be5c1d437fc8799e0",
                "target": {
                  "file": "src/flac.c",
                  "function": "flac_buffer_copy"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:27:22Z"
          }
        }
      ],
      "modified": "2026-10-20T13:27:22.825241115Z",
      "provider": "osv",
      "references": [
        "https://security.gentoo.org/glsa/201707-04",
        "https://blogs.gentoo.org/ago/2017/04/11/libsndfile-invalid-memory-read-and-invalid-memory-write-in/",
        "https://github.com/erikd/libsndfile/commit/60b234301adf258786d8b90be5c1d437fc8799e0"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2017-7741",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387706,
  "published_at": "2017-04-12T18:59:00.157+00:00"
}