Vulnerabilities / CVE-2017-10788

critical

CVE-2017-10788

perl-DBD-MySQL: Use-after-free when calling mysql_stmt_error() after mysql_stmt_close()

Published Modified CWE 416
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (low).

Description

The DBD::mysql module through 4.043 for Perl allows remote attackers to cause a denial of service (use-after-free and application crash) or possibly have unspecified other impact by triggering (1) certain error responses from a MySQL server or (2) a loss of a network connection to a MySQL server. The use-after-free defect was introduced by relying on incorrect Oracle mysql_stmt_close documentation and code examples.

Affected packages and fixed versions

SourcePackageFixed in
debian 11libdbd-mysql-perl4.046-1
debian 12libdbd-mysql-perl4.046-1
debian 13libdbd-mysql-perl4.046-1
debian 14libdbd-mysql-perl4.046-1
debian 7libdbd-mysql-perl4.021-1+deb7u3
debian 8libdbd-mysql-perlno fix listed
debian 9libdbd-mysql-perlno fix listed
echolibdbd-mysql-perl4.046-1
Red Hatperl-DBD-MySQL, rh-perl520-perl-DBD-MySQL, rh-perl524-perl-DBD-MySQLno fix listed
ubuntu 16.04-ESMlibdbd-mysql-perl4.033-1ubuntu0.1+esm1
Show all 12 entries from 10 sources
SourcePackageFixed in
debian 11libdbd-mysql-perl4.046-1
debian 12libdbd-mysql-perl4.046-1
debian 13libdbd-mysql-perl4.046-1
debian 14libdbd-mysql-perl4.046-1
debian 7libdbd-mysql-perl4.021-1+deb7u3
debian 8libdbd-mysql-perlno fix listed
debian 9libdbd-mysql-perlno fix listed
echolibdbd-mysql-perl4.046-1
Red Hatperl-DBD-MySQLno fix listed
Red Hatrh-perl520-perl-DBD-MySQLno fix listed
Red Hatrh-perl524-perl-DBD-MySQLno fix listed
ubuntu 16.04-ESMlibdbd-mysql-perl4.033-1ubuntu0.1+esm1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.