php: mt_rand() does not check that max is greater than min
Published Feb 2, 2011
5.0
MEDIUMCVSS 2.0
EPSS 1.94%
Description
Integer overflow in the mt_rand function in PHP before 5.3.4 might make it easier for context-dependent attackers to predict the return values by leveraging a script's use of a large max parameter, as demonstrated by a value that exceeds mt_getrandmax.
Affected products
No data.
- ≤ 5.3.3
- 1.0
- 2.0
- 2.0b10
- 3.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.6
- 3.0.7
- 3.0.8
- 3.0.9
- 3.0.10
- 3.0.11
- 3.0.12
- 3.0.13
- 3.0.14
- 3.0.15
- 3.0.16
- 3.0.17
- 3.0.18
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0
- 4.0.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2.0
- 4.2.1
- 4.2.2
- 4.2.3
- 4.3.0
- 4.3.1
- 4.3.2
- 4.3.3
- 4.3.4
- 4.3.5
- 4.3.6
- 4.3.7
- 4.3.8
- 4.3.9
- 4.3.10
- 4.3.11
- 4.4.0
- 4.4.1
- 4.4.2
- 4.4.3
- 4.4.4
- 4.4.5
- 4.4.6
- 4.4.7
- 4.4.8
- 4.4.9
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.1.0
- 5.1.1
- 5.1.2
- 5.1.3
- 5.1.4
- 5.1.5
- 5.1.6
- 5.2.0
- 5.2.1
- 5.2.2
- 5.2.3
- 5.2.4
- 5.2.4
- 5.2.5
- 5.2.6
- 5.2.7
- 5.2.8
- 5.2.9
- 5.2.10
- 5.2.11
- 5.2.12
- 5.2.13
- 5.2.14
- 5.2.15
- 5.2.16
- 5.2.17
- 5.3.0
- 5.3.1
- 5.3.2
No data.
Red Hat Enterprise Linux 4
php
Not affected
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 6
php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 4 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat does not consider this flaw to be a security issue as arguments passed to the mt_rand function are under the full control of the script author. No trust boundary is crossed. This flaw exists in the php53 packages versions as shipped in Red Hat Enterprise Linux 5 and the php packages versions as shipped in Red Hat Enterprise Linux 6.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.94% (0.01937) | 79.35th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.94% (0.01937) | 77.38th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.41% (0.00408) | 59.05th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.18% (0.00180) | 56.56th | v3 (v2023.03.01) |
| Jun 20, 2024 | 0.18% (0.00180) | 55.41th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.18% (0.00180) | 53.40th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Sep 10, 2022 | 1.02% (0.01018) | 38.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.02% (0.01018) | 36.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
References (8)
- http://bugs.php.net/46587 x_refsource_CONFIRMExploit
- http://www.php.net/ChangeLog-5.php x_refsource_CONFIRM
- https://access.redhat.com/security/cve/CVE-2011-0755 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=674709 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/65426 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2011-0755
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A12589 vdb-entrysignaturex_refsource_OVAL
- https://www.cve.org/CVERecord?id=CVE-2011-0755
| Link | Providers | Tags |
|---|---|---|
| http://bugs.php.net/46587 | x_refsource_CONFIRMExploit | |
| http://www.php.net/ChangeLog-5.php | x_refsource_CONFIRM | |
| https://access.redhat.com/security/cve/CVE-2011-0755 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=674709 | Issue Tracking | |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/65426 | vdb-entryx_refsource_XF | |
| https://nvd.nist.gov/vuln/detail/CVE-2011-0755 | ||
| https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A12589 | vdb-entrysignaturex_refsource_OVAL | |
| https://www.cve.org/CVERecord?id=CVE-2011-0755 |
Change history (0)
No recorded changes yet.