I have one specific package (moodle) which is not available on newer versions of the aforementioned OS. The last version of moodle was available on OpenBSD 5.3, which is more than 4 years old.

Knowing of OpenBSD's impressive security track record, is there a security risk in installing the moodle package (www.moodle.org) on an OpenBSD 5.3 server exposed to Internet?

  • Yes it could. Or rather, it would be for sure. You need to use current / patched software to be secure.
    – Aria
    Commented Dec 26, 2017 at 18:22
  • 8
    Have you considered building the package yourself on the newest release of OpenBSD? Commented Dec 26, 2017 at 18:25
  • How can I do that?
    – user166931
    Commented Dec 27, 2017 at 7:02
  • What Moodle version are you running? It will run on any LAMP stack, just make sure you have the correct PHP version. docs.moodle.org/19/en/PHP_settings_by_Moodle_version Also old Moodle versions may not be getting security updates. Commented Dec 27, 2017 at 15:41

2 Answers 2


I have one specific package (moodle) which is not available on newer versions of aforementioned OS (last version of moodle was available on OpenBSD 5.3) which is more than 4 years old.

In my opinion you ask the wrong question. The problem is less the old version of OpenBSD but more the old version of Moodle you want to run on this OpenBSD version. Although you don't specify details my guess is that you want to use this package (or here) which contains Moodle 1.9.16 on PHP 5.4 - both being very old.

OpenBSD releases are supported essentially for one year. Running a version of OpenBSD which is more than 3 years out of support can maybe done if you really know what you are doing to keep the attack surface minimal enough - for example by only having SSH access with only key based authentication and if you have no untrusted users on your system.

But, running a large web application like Moodle definitely does not count as minimal attack surface. Web applications are usually complex and often have security vulnerabilities, sometimes even critical ones which allow remote code execution. And such vulnerabilities also exist with older versions of Moodle as a simple search shows. And while sometimes critical fixes get backported to older versions you can see from the commit history that the last change on this package was done 2012-01-21. I guess that this non-maintenance of the package was also the reason that it got removed from ports on 2013-09-20.

In other words: Running an old version of a large and complex application like Moodle with known critical security vulnerabilities is a very bad idea. And the security of OpenBSD will not help to protect you much in this case. It will not help much if you use a current version and it will help even less if use use an old and unmaintained version of OpenBSD.

  • But I don't think the OP is planning to run an old version of moodle. Rather, they are going to run the latest version of Moodle on an old version of OpenBSD. Commented Dec 26, 2017 at 18:36
  • 4
    @KodosJohnson: the OP wants to use an old version of OpenBSD since this is the only one where a Moodle package exists. Do you believe that a recent version of Moodle is supported only on a long unsupported OpenBSD version? According to this it is probably the very old moodle 1.9.16 on also old PHP 5.4 Commented Dec 26, 2017 at 18:42
  • There’s nothing wrong with running PHP 5.4 code in 2017. PHP is routinely backported for patches across systems that are in LTS (Long Term Service) and are stable/rock solid. The whole purpose of backporting is to allow older, stable versions of software to be used on more modern setups. Commented Dec 27, 2017 at 4:22
  • 1
    @JakeGould: PHP 5.4 end of life was September 2015. No fixes were done after 2015/09/03. See the official information about Unsupported Branches. Anyway, the worst thing is the old Moodle version and not the old PHP or OpenBSD versions. Commented Dec 27, 2017 at 6:02
  • Sorry for my ignorance, but I supposed that packages on OpenBSD are going through almost same scrutiny and high security standard like OpenBSD OS..
    – user166931
    Commented Dec 27, 2017 at 7:04

BSD has nothing to do with it (but it's a good choice).

Running older software is quite possible if properly patched.

Google and the CVE DB is your friend



Determine the nine vulnerabilities are relevant to your configuration and deployment and whether you can patch them.

Search for Moodle and any other services you plan to advertise on the web for CVE's, determine their relevance and patch accordingly.

IF YOU DETERMINE some vulnerabilities cannot be patched or mitigated, then determine if a secure tunneling method suits your accessibility requirements, i.e. a firewall rule granting access to specific ranges of IP addresses, a VPN to your edge router which provides controlled access to your Moodle box.

These are general options to a vast array of solutions that will accomplish your objective !

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .