VYPR
Moderate severityNVD Advisory· Published Nov 24, 2014· Updated May 6, 2026

CVE-2014-7848

CVE-2014-7848

Description

lib/phpunit/bootstrap.php in Moodle 2.6.x before 2.6.6 and 2.7.x before 2.7.3 allows remote attackers to obtain sensitive information via a direct request, which reveals the full path in an error message.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
moodle/moodlePackagist
>= 2.6.0, < 2.6.62.6.6
moodle/moodlePackagist
>= 2.7.0, < 2.7.32.7.3

Affected products

19
  • Moodle/Moodle19 versions
    cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*+ 18 more
    • cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*range: <=2.4.11
    • cpe:2.3:a:moodle:moodle:2.5.0:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.5.1:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.5.2:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.5.3:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.5.4:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.5.5:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.5.6:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.5.7:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.5.8:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.6.0:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.6.1:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.6.2:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.6.3:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.6.4:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.6.5:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.7.0:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.7.1:*:*:*:*:*:*:*
    • cpe:2.3:a:moodle:moodle:2.7.2:*:*:*:*:*:*:*

Patches

3
1993cc02b6b0

MDL-47287 prevent web access to phpunit boostrap

https://github.com/moodle/moodlePetr SkodaSep 18, 2014via ghsa
1 file changed · +4 0
  • lib/phpunit/bootstrap.php+4 0 modified
    @@ -26,6 +26,10 @@
      * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
      */
     
    +if (isset($_SERVER['REMOTE_ADDR'])) {
    +    die; // No access from web!
    +}
    +
     // we want to know about all problems
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', '1');
    
84baa6b14173

MDL-47287 prevent web access to phpunit boostrap

https://github.com/moodle/moodlePetr SkodaSep 18, 2014via ghsa
1 file changed · +4 0
  • lib/phpunit/bootstrap.php+4 0 modified
    @@ -26,6 +26,10 @@
      * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
      */
     
    +if (isset($_SERVER['REMOTE_ADDR'])) {
    +    die; // No access from web!
    +}
    +
     // we want to know about all problems
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', '1');
    
0baf9763636a

MDL-47287 prevent web access to phpunit boostrap

https://github.com/moodle/moodlePetr SkodaSep 18, 2014via ghsa
1 file changed · +4 0
  • lib/phpunit/bootstrap.php+4 0 modified
    @@ -26,6 +26,10 @@
      * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
      */
     
    +if (isset($_SERVER['REMOTE_ADDR'])) {
    +    die; // No access from web!
    +}
    +
     // we want to know about all problems
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', '1');
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

9

News mentions

0

No linked articles in our index yet.